package com.jingogo.service.impl;

import com.jingogo.entity.AuditLog;
import com.jingogo.mapper.AuditLogMapper;
import com.jingogo.service.AuditLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class AuditLogServiceImpl implements AuditLogService {
    @Autowired
    private AuditLogMapper auditLogMapper;

    @Override
    public void addLog(AuditLog log) {
        auditLogMapper.insert(log);
    }

    @Override
    public List<AuditLog> listAuditLog(String keyword) {
        return auditLogMapper.selectByKeyword(keyword);
    }

    @Override
    public List<AuditLog> listAll() {
        return auditLogMapper.selectAll();
    }
} 